﻿using LView.CMS.Core;

namespace LView.CMS.Models
{
    /// <summary>
    /// 课程进度表
    /// </summary>
    public class LProcess
    {
        public string Id { get; set; }
        /// <summary>
        /// 员工
        /// </summary>
        [MongoIndex("IDX_LProcess_UserId")]
        public string UserId { get; set; }
        /// <summary>
        /// 课程
        /// </summary>
        [MongoIndex("IDX_LProcess_CourseId")]
        public string CourseId { get; set; }

        /// <summary>
        /// 课程已学学时
        /// </summary>
        public int CourseGotPeriod { get; set; }

        /// <summary>
        /// 课程已得学分
        /// </summary>
        public int CourseGotScore { get; set; }

        /// <summary>
        /// TaskId
        /// </summary>
        [MongoIndex("IDX_LProcess_TaskId")]
        public string TaskId { get; set; }
        /// <summary>
        /// 百分比
        /// </summary>
        public decimal Percent { get; set; }
    }
}
